<?php
/**
 * Created by litong on Date: 2018/12/22 0022 下午 7:25
 */
echo "这是第".__LINE__."行";
echo "<br/>";
echo "这是第".__LINE__."行";
echo "<br/>";
echo "文件路径".__FILE__;
echo "<br/>";
echo "文件目录".__DIR__;
function getFunctionName(){
  echo "<br/>";
  echo "函数名字是".__FUNCTION__;
  echo "<br/>";
}
getFunctionName();
echo "类名是".__CLASS__;
echo "<br/>";
echo "获取php执行是的文件名";
echo substr(__FILE__,strlen(__DIR__)+1);
?>